package com.ushio.gougouwangguo.entity.mysql;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Person {
    @ExcelProperty("ID")
    private int id;
    @ExcelProperty("名称")
    private String name;
    @ExcelProperty("年龄")
    private int age;
    @ExcelProperty("性别")
    private String gender;
    // 转 CSV 格式
    public String toCsv() {
        return id + "," + name + "," + age + "," + gender;
    }
}
